package com.education.online.controller;


import com.education.common.utils.ApiReturnObject;
import com.education.online.pojo.OPrepaType;
import com.education.online.service.OPrepaTypeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


/**
 * 备课资源类型表
 *
 * @date 2020-06-08 15:32:23
 */
@Api(tags = {"PC--备课共享资源表"})
@RestController
@RequestMapping("/online/oprepatype")
public class OPrepaTypeController {

    @Autowired
    private OPrepaTypeService oPrepaTypeService;

    @ApiOperation(value = "查询所有媒体类型", httpMethod = "GET")
    @GetMapping("/selectList")
    public ApiReturnObject selectList(){
        List<OPrepaType> typeList = oPrepaTypeService.selectOPrepaTypeList(null);
        return new ApiReturnObject("200","success",typeList);
    }


}
